// 授权相关接口
import request from '@/utils/request'

// 查询授权列表
export function authorizeList(query) {
    return request({
        url: '/biz/authorize/list',
        method: 'get',
        params: query
    })
}

// 根据Id查询
export function authorizeQueryById(query) {
    return request({
        url: '/biz/authorize/queryById',
        method: 'get',
        params: query
    })
}

// 保存
export function authorizeSave(data) {
    return request({
        url: '/biz/authorize/save',
        method: 'post',
        data
    })
}

// 修改
export function authorizeUpdate(data) {
    return request({
        url: '/biz/authorize/update',
        method: 'put',
        data
    })
}

// 删除
export function authorizeDelete(id) {
    return request({
        url: `/biz/authorize/delete/${id}`,
        method: 'delete',
    })
}